import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created with IntelliJ IDEA.
 * User: prog1c2
 * Date: 12.03.13
 * Time: 15:10
 * To change this template use File | Settings | File Templates.
 */
public class ioExamle_01 {
      public static void main(String args[]) throws IOException {
          char c;
          String str;
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          System.out.println("q - Exit");
//          do {
//              c = (char) br.read();
//              System.out.println(c);
//          } while (c!='q');
          do {
              str = br.readLine();
              System.out.println(str);
          } while (!str.equals("stop"));

          //System.out.println("SVN");

      }

}

